#ifdef __cplusplus
extern "C"{
#endif

#ifndef __XS_STRING_H__
#define __XS_STRING_H__


size_t xs_strlen(const char *s);
size_t xs_strnlen(const char *s, size_t count);
char *xs_strcpy(char *dest, const char *src);
char *xs_strncpy(char *dest, const char *src, size_t count);
char *xs_strcat(char *dest, const char *src);
char *xs_strncat(char *dest, const char *src, size_t count);
int xs_strcmp(const char *cs, const char *ct);
int xs_strncmp(const char *cs, const char *ct, size_t count);
char *xs_strchr(const char *s, int c);
char *xs_strrchr(const char *s, int c);
char *xs_strnchr(const char *s, size_t count, int c);
char *xs_skip_spaces(const char *str);
void *xs_memset(void *s, int c, size_t count);
void *xs_memcpy(void *dest, const void *src, size_t count);
void *xs_memmove(void *dest, const void *src, size_t count);
int xs_memcmp(const void *cs, const void *ct, size_t count);
void *xs_memscan(void *addr, int c, size_t size);
char *xs_strstr(const char *s1, const char *s2);
char *xs_strnstr(const char *s1, const char *s2, size_t len);
void *xs_memchr(const void *s, int c, size_t n);
char *xs_strtok_r(char *s, const char *delim, char **save_ptr);
int xs_snprintf (char *__buf, size_t __maxlen, const char *__format, ...);


#endif

#ifdef __cplusplus
}
#endif
